package pl.com.qapps.unity;

import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.TimeUnit;

import pl.com.qapps.unity.Quicklist.Action;
import pl.com.qapps.unity.Quicklist.Item;
import pl.com.qapps.unity.Quicklist.Separator;

/**
 * @author Jakub Dykowski
 * 
 */
class TestQuicklist {

	public static void main(String[] args) throws InterruptedException {
		AppLauncher launcher = AppLauncher
				.getForDesktopFile("Eclipse.desktop");
		Quicklist q = new Quicklist();
		launcher.setQuicklist(q);
		Quicklist.Item i1 = new Quicklist.Action("Item 1", null);
		Item i2 = new Action("Item 2", null);
		q.add(new Separator());
		q.add(i2);
		q.set(0, i1);

		Set<String> set = new HashSet<>();
		set.add("hello");
		set.add(null);
		set.add(null);
		System.out.println(set);

		TimeUnit.SECONDS.sleep(10);
	}

}
